#pragma once
#include<sys/wait.h>
#include<sys/stat.h>
#include<cerrno>
#include<cstring>
#include<string>
#include<fcntl.h>
#include<unistd.h>

#define FIFO_FILE "./myfifo"
#define MOOD 0664
enum{
    FIFO_CREATE_ERR=-1,
    FIFP_DELETE_ERR,
    FIFO_OPEN_ERR
};
class Init
{
public:
    Init()
    {
        int n=mkfifo(FIFO_FILE,MOOD);
        if(n==-1)
        {
            perror("mkfifo");
            exit(FIFO_CREATE_ERR);
        }

    }
    ~Init(){
        
    }
};
